package xiao.ze.demo.entity;


import java.io.Serializable;
import java.util.Arrays;

/**
 * Course
 *
 * @author xiaoze
 * @date 2018/6/3
 */
public class Course implements Serializable {
    private static final long serialVersionUID = 7633733855994261205L;

    public Course() {
    }

    public Course(String no, String name, Integer hours, Integer typeId,
                  String status, String reqs, Double point, String memo,
                  byte[] textbookPic) {
        this.no = no;
        this.name = name;
        this.hours = hours;
        this.typeId = typeId;
        this.status = status;
        this.reqs = reqs;
        this.point = point;
        this.memo = memo;
        this.textbookPic = textbookPic;
    }

    private String no;
    private String name;
    private Integer hours;
    private Integer typeId;
    private String status;
    private String reqs;
    private Double point;
    private String memo;
    private byte[] textbookPic;

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getHours() {
        return hours;
    }

    public void setHours(Integer hours) {
        this.hours = hours;
    }

    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getReqs() {
        return reqs;
    }

    public void setReqs(String reqs) {
        this.reqs = reqs;
    }

    public Double getPoint() {
        return point;
    }

    public void setPoint(Double point) {
        this.point = point;
    }

    public String getMemo() {
        return memo;
    }

    public void setMemo(String memo) {
        this.memo = memo;
    }

    public byte[] getTextbookPic() {
        return textbookPic;
    }

    public void setTextbookPic(byte[] textbookPic) {
        this.textbookPic = textbookPic;
    }

    @Override
    public String toString() {
        return "Course{" +
                "no='" + no + '\'' +
                ", name='" + name + '\'' +
                ", hours=" + hours +
                ", typeId=" + typeId +
                ", status='" + status + '\'' +
                ", reqs='" + reqs + '\'' +
                ", point=" + point +
                ", memo='" + memo + '\'' +
                ", courseTextbookPic=" + Arrays.toString(textbookPic) +
                '}';
    }
}
